import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// svg插件配置代码
import 'virtual:svg-icons-register'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import allGlobalComponent from '@/components'
import App from '@/App.vue'
// 引入模板的全局样式
import '@/styles/index.scss'
// svg插件
import 'virtual:svg-icons-register'
// 引入路由
import { router } from '@/route'
// 引入pinia
import pinia from '@/stores'
// 引入自定义指令
const app = createApp(App)
app.use(pinia)
// 引入路由
app.use(router)
// 为Element Plus配置中文
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(allGlobalComponent)

app.mount('#app')
